/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package datamodel;

/**
 *
 * @author Kvest
 */
public class Message 
{
    private int id;
    private String title;
    private String text;
    
    public Message(String title, String text)
    {
        this.id = (int)(System.currentTimeMillis() % (long)Integer.MAX_VALUE);
        this.title = title;
        this.text = text;
    }
    
    public Message()
    {
        this("", "");
    }

    public int getId() 
    {
        return id;
    }
    
    public String getText() 
    {
        return text;
    }

    public void setText(String text) 
    {
        this.text = text;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }
}
